from multiprocessing import Process
from time import sleep


class MyProcess(Process):
    def __int__(self, song):
        self.song = song
        super().__init__()

    def run(self):
        for i in range(3):
            sleep(2)
            print("play", self.song)

    def play(self):
        self.start()


if __name__ == '__main__':
    music = MyProcess()
    music.play()
